public class Boat {
    //载重、排水量、航速
    String load, displacement, speed;

    public Boat(String load, String displacement, String speed) {
        this.load = load;
        this.displacement = displacement;
        this.speed = speed;
    }

    //起航，鸣笛、抛锚
    public void start() {
        System.out.println("启航");
    }

    public void whistle() {
        System.out.println("鸣笛");
    }

    public void anchor() {
        System.out.println("抛锚");
    }
}